<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
     <meta content="telephone=no" name="format-detection" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable = no"/>
    <title>业绩-{$webseting.web_title}</title>
    <link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/user.css"  rel="stylesheet">
</head>
<body id="body">
<!--绑定头部-->
<include file="Public/binding_head"/>
<!--绑定头部-->
<header id="header" class="u-header clearfix">
        <div class="u-hd-left f-left">
            <a href="{:U('wap/member/index')}" class="J_backToPrev"><span class="u-icon-px i-hd-back"></span></a>
        </div>
        <div class="u-hd-tit"><span>业绩({$count_share})</span></div>
    </header>
    <div class="common-wrapper">
        <div class="f-nei fm-fans">
            <ul class="concern-con more_html">
                <volist name="list" id="vo" >
               
                 <li>
                    <div class="wrap">
                        <a class="alist" href="{:U('wap/Goods/goods_detail',array('id'=>$vo['goods_id']))}">
                            <div class="list_litpic fl" style="width: 90px; height: 90px;display: inline-block; text-align: center">
                                <img class="_logo" src="{:U('wap/index/get_thumbs',array('auto'=>64))}?img={$vo.goods_image}" style="width: 100%; height : 100%; ">
                            </div>
                            <div class="list_info">
                                <h4 class="_member_name">{$vo.goods_name}</h4>
                              
                                <p class="h5_txt">
                                    
                                    {$vo.code_name}
                                    
                                </p>
                                <p class="h5_txt p-price">
                                   ￥{$vo.share_money}
                                </p>
                            </div>
                        </a>
                    </div>
                </li>
                
               </volist> 
               
               
            </ul>
        </div>
    </div>
      <div class="b_q">
        <div class="fm-footer-copyright get_more">
            <if condition="$count['goods'] gt 10 && count($list) eq 10">
                  加载更多
              <else/>  
                 无更多数据
            </if>
        </div>
    </div>
    <!--end top-->
   <include file="Public/footer" />
<include file="Public/wap_javascript"/>
<script type="text/javascript">
    var binding_is_check = 0;// 重复再次弹出 1是 0否
    var binding_page = 'goodsorder_share';// //当前页面名称 不可重复
</script>
<!--绑定-->
<include file="Public/binding_phone"/>
<!--绑定-->
    <!--end 页脚--> 
     <input type="hidden" name="p" value="2" />

     <!--微信分享-->    
 <include file="Public/share_weixin" />

<script type="text/javascript">
   $(function(){
     $(".get_more").click(function(){
        get_more();
     });

   }); 
   function get_more(){
     var p=$("input[name='p']").val();
           $.ajax({ 
            url: "{:U('wap/goodsorder/share')}",
            type:'post',
            data: {p:p},
            dataType: 'json',
            success: function(data){
              //console.log(data);
               var con=1;
              if(data){
                var option='';
                 $.each(data, function(i, value) {
                //this指向当前元素
                //i表示Array当前下标
                //value表示Array当前元素
             option=option+' <li>'
                    +'<div class="wrap">'
                   +'     <a class="alist" href="<?php echo U('wap/Goods/goods_detail'); ?>?id='+value.goods_id+'">'
                +'  <div class="list_litpic fl" style="width: 90px; height: 90px;'
                +'display: inline-block; text-align: center">'
                   +'  <img class="_logo" src="<?php echo U('wap/index/get_thumbs',array('auto'=>64)); ?>?img='
            +value.goods_image+'" style="width: 100%; height : 100%; ">'
                   +'         </div>'
                   +'         <div class="list_info">'
                   +' <h4 class="_member_name">'
                   +value.goods_name+'</h4>'
                   
                   +'             <p class="h5_txt">'
                  +value.code_name
                   +'             </p>'
                    +'            <p class="h5_txt p-price">'
                   +value.share_money
                 +'               </p>'
                 +'           </div>'
                 +'       </a>'
                +'    </div>'
                +' </li>';
                    con++;
                 });
                 $('.more_html').append(option);
                 $("input[name='p']").val(parseInt(p)+1);
              }
              if(con<10){
                 $('.get_more').html('无更多数据');
              }
            }
           });
   }
</script>
</body>
</html>